package com.softtown.modules.sys.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.softtown.common.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 公司
 *
 * @author Dingyayong
 * @version v1.0
 * @create 2019-05-20 15:49
 **/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("comp_sys_comp")
public class SysCompEntity extends BaseEntity {
    private static final Long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 公司名称
     * isNullAble:0
     */
    private String name;

    /**
     * 统一社会信用代码
     * isNullAble:1
     */
    private String uscc;

    /**
     * 地址
     * isNullAble:1
     */
    private String address;

    /**
     * 电话
     * isNullAble:1
     */
    private String tel;

    /**
     * 联系人
     * isNullAble:1
     */
    private String contact;

    /**
     * 联系电话
     * isNullAble:1
     */
    private String mobile;

    /**
     * 企业系统管理员
     * isNullAble:1
     */
    private Long adminUserId;

    /**
     * 可激活用户数
     * isNullAble:1
     */
    private Integer activatableUsers;

    /**
     * 状态
     * isNullAble:1
     */
    private Integer status;

    /**
     * 更新者
     * isNullAble:1
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updater;

    /**
     * 更新时间
     * isNullAble:1
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateDate;

    /**
     * 更新时间戳
     * isNullAble:1
     */
    private String updateTimestamp;

    /**
     * 逻辑删除
     * isNullAble:1
     */
    private Integer isDeleted;

    /**
     * 企业系统管理员
     */
    @TableField(exist = false)
    private String adminUserName;
}

